require "Test0"
function print_table(t)
	if type(t) ~= "table" then
		error("want table", 0)
	end

	for i,v in pairs(t) do
		print(i,v)
	end
end

p1 = Point:new(0.0,1.0)
local p2 = ColorPoint:new_local(1.5,2.2,0,0,255)
print(Point.n)                     -- would print 2
print(Point:get_n())               -- would also print 2
p3 = p1+p2
print(Point:get_n())
print(p3.x,p3.y)                   -- would print 1.5 and 3.2
p2[1] = 127;
print(p2.red,p2.green,p2.blue)     -- would print 0, 0, and 255
print(p2[".long"](p2))
p1:delete()                        -- call destructor
print(Point:get_n())
p2 = nil
collectgarbage()
print(Point:get_n())

--local pos = Position:create()
pos:set(15, 10)
--pos.y = 20;
--print(pos:getpos());